<template>
  <div class="app-container">

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="access_token"
        >access_token</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          @click="refresh_token"
        >refresh_token</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          @click="advertiser_get"
        >advertiser_get</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="info"
          plain
          icon="el-icon-upload2"
          size="mini"
          @click="log_search"
        >log_search</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="advertiser_select"
          v-hasPermi="['dataMain:account:export']"
        >advertiser_select</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="reportAgent"
          v-hasPermi="['dataMain:account:export']"
        >reportAgent</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="addAccount"
        >addAccount</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

  </div>
</template>

<script>
import { access_token,refresh_token,advertiser_get,log_search,advertiser_select,reportAgent,addAccount } from "@/api/openapi/openapi";
export default {
  name: "Account",
  dicts: ['medium'],
  data() {
    return {}
  },
  created() {
    this.getList();
  },
  methods: {
    reportAgent() {
      reportAgent().then(res => {

      })
    },
    addAccount() {
      addAccount().then(res => {

      })
    },
    advertiser_select() {
      advertiser_select().then(res => {

      })
    },
    log_search() {
      log_search(1796846070058266).then(res => {

      })
    },
    advertiser_get() {
      advertiser_get().then(res => {

      })
    },
    refresh_token() {
      refresh_token(1).then(res => {

      })
    },
    access_token() {
      access_token(1).then(res => {

      })
    },
  }
};
</script>
